﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="View.WindowChangeAvatar"
	x:Name="Window"
	Title="WindowChangeAvatar"
	Width="369" Height="466" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">

	<Grid x:Name="LayoutRoot">
		<Grid.Background>
			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF000000" Offset="0"/>
				<GradientStop Color="#FF1634AE" Offset="1"/>
			</LinearGradientBrush>
		</Grid.Background>
		<TextBlock HorizontalAlignment="Center" Margin="0,16,0,0" VerticalAlignment="Top" Height="Auto" Foreground="#FFFFFFFF" Text="Changer d'image personnelle" TextWrapping="Wrap" FontSize="16"/>
		<Image HorizontalAlignment="Center" Margin="150,60,0,0" VerticalAlignment="Top" Width="100" Height="100" d:LayoutOverrides="VerticalAlignment" Stretch="UniformToFill" x:Name="imageAvatar" Source="{Binding Img}" />
		<TextBlock Margin="0,100,160,0" VerticalAlignment="Top" Height="Auto" Text="Image personnelle actuelle :" TextWrapping="Wrap" Foreground="#FFFFFFFF" HorizontalAlignment="Center"/>
		<TextBlock Margin="0,188,0,0" TextWrapping="Wrap" Foreground="#FFFFFFFF" HorizontalAlignment="Center" VerticalAlignment="Top"><Run Text="Cliquez sur parcourir pour choisir une nouvelle image :" Language="fr-fr"/></TextBlock>
		<Button Margin="0,220,220,0" VerticalAlignment="Top" Height="25" Content="Parcourir ..." HorizontalAlignment="Center" x:Name="buttonUploadAvatar" Click="buttonUploadAvatar_Click"/>
		<TextBlock HorizontalAlignment="Center" Margin="20,220,0,0" VerticalAlignment="Top" Height="25" Foreground="#FFFFFFFF" TextWrapping="Wrap" x:Name="textBlockNewSelectedAvatar"><Run Text="Aucune image sélectionnée ..." Language="fr-fr"/></TextBlock>
		<Image Margin="0,265,0,0" VerticalAlignment="Top" Height="100" Stretch="UniformToFill" HorizontalAlignment="Center" Width="100" x:Name="imageNewAvatar"/>
		<TextBlock Margin="0,0,240,160" VerticalAlignment="Bottom" Height="22" TextWrapping="Wrap" Foreground="#FFFFFFFF" HorizontalAlignment="Center"><Run Text="Aperçu :" Language="fr-fr"/></TextBlock>
		<Button HorizontalAlignment="Center"  Margin="0,380,160,0" VerticalAlignment="Top" Width="100" Height="25" Content="Appliquer" x:Name="buttonApplyNewAvatar" Click="buttonApplyNewAvatar_Click" IsEnabled="False" />
		<Button HorizontalAlignment="Center" Margin="160,380,0,0" VerticalAlignment="Top" Width="100" Height="25" Content="Annuler" x:Name="buttonCancel" Click="buttonCancel_Click"/>
        
	</Grid>
</Window>